﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_XemDanhSachTaiKhoan.aspx.cs" Inherits="Admin_Admin_CapNhatTaiKhoanDang2" Title="Untitled Page" %>

<%@ Register src="../../UserControls/PageInterface.ascx" tagname="PageInterface" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center><h2>Danh Sách Tài Khoản
    </h2>
    <div style="text-align:right; padding-right:90px;">
   <asp:Button ID="Button1" runat="server" 
        Text="Thêm tài khoản" onclick="Button1_Click" />
        <asp:Button ID="btnXoa" runat="server" Text="Xóa chọn" onclick="btnXoa_Click" />
        </div>
    
    <asp:DataList ID="DataList_DSTK" runat="server">
        <ItemStyle BorderColor="Red" BorderStyle="Solid" BorderWidth="1px" />
        <HeaderTemplate>
        <table cellpadding="5">
            <tr>
                <td class="datalist_hinhanh_nho">Hình ảnh
                </td>
                <td class="datalist_thongTinTaiKhoan">Thông tin
                </td>                
                <td class="datalist_checkbox">Kích hoạt
                </td>
                <td class="datalist_link">
                </td>
                <td class="datalist_link">                    
                </td>
            </tr>
        </table>
        </HeaderTemplate>
        <HeaderStyle CssClass="datalist_header" BorderColor="#006600" 
            BorderStyle="Solid" BorderWidth="1px" />
    <ItemTemplate>
        <table cellpadding="5">            
                <tr>
                    <td class="datalist_hinhanh_nho">
                        <asp:HyperLink ID="HyperLink_PicLink" runat="server" NavigateUrl='<%# Eval("CMND", "~/ChucNang/Admin/Admin_XemChiTietTaiKhoan.aspx?CMND={0}") %>'>
                            <asp:Image ID="Image_hinhSP"  Height="80" Width="80" runat="server" ImageUrl='<%# Eval("Avatar") %>' />
                        </asp:HyperLink>
                    </td>
                 
                    <td class="datalist_thongTinTaiKhoan">  
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                        	<tr>
                        		<td style='width:62px'><i>CMND:</i></td>
                        		<td>
                        		    <asp:HyperLink ID="hyperlink_CMND" runat="server"  
                                    NavigateUrl='<%# Eval("CMND", "~/ChucNang/Admin/Admin_XemChiTietTaiKhoan.aspx?CMND={0}") %>' 
                                    CssClass="datalist_textThongTin" Text='<%# Eval("CMND") %>'><%# Eval("CMND") %></asp:HyperLink>
                        		</td>
                        	</tr>
                        	<tr>
                        		<td><i>Họ Tên:</i></td>
                        		<td>
                        		    <asp:Label ID="lblHoTen" runat="server" Text=<%# Eval("HoTen") %> 
                                    Font-Bold="True" CssClass="datalist_textThongTin"></asp:Label>
                        		</td>
                        	</tr>
                        	<tr>
                        		<td><i>Email:</i></td>
                        		<td>
                        		    <asp:HyperLink ID="HyperLink3" CssClass="datalist_textThongTin" runat="server" NavigateUrl='<%# Eval("Email", "mailto:{0}") %>' ForeColor="#006600"> <%# Eval("Email") %></asp:HyperLink>
                        		</td>
                        	</tr>
                        	<tr>
                        	    <td><i>Vai trò:</i></td>
                        	    <td>
                                    <asp:Label ID="lbVaiTro" runat="server" Text='<%#Eval("TenVaiTro") %>'></asp:Label></td>
                        	</tr>
                        </table>
                    </td>                 
                   
                    
                    <td class="datalist_checkbox">
                        <asp:CheckBox ID="CheckBox1" runat="server" Checked=<%#Eval ("TrangThai") %> 
                            Enabled="False" />
                    </td>
                    
                    <td class="datalist_link">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl=<%# Eval("CMND", "Admin_CapNhatTaiKhoan.aspx?CMND={0}") %>>Cập nhật</asp:HyperLink>
                    </td>
                    
                    <td class="datalist_link">
                        <!--<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl=<%# Eval("CMND", "Admin_XuLyXoaTaiKhoan.aspx?CMND={0}") %>>Xóa</asp:HyperLink>-->
                        <asp:CheckBox ID="ckXoa" runat="server" />
                    </td>
                </tr>
            </table>
    </ItemTemplate>        
    </asp:DataList>
    <uc1:PageInterface ID="PageInterface1" runat="server" />
    </center>
    
</asp:Content>

